took out extra variablesand prints