trying to improve hit testing