removing superfluous puts