added object hit function