removed stdout statements