added 'hit' functionality