changed the code

ripped out some unneeded code