created objects out of the method and fixed shoot bug