renamed hit function