remove extraneous lines of code