working on hit testing