parking logic