code trimming

removed unnecessary code