prepare for shooting function