added lengths so var name is not overwritten