removing dead method