removed unnecessary length