removed unneccesary lovcal variable