added checking for active lot