removed unnecessary frees...