removed unnecessary operations