optimize lane creation function (removed an if statement!)