add hit and stay function