handmade simulation