add hitTest method