added crossingLineCheck