removes useless select/print statement