removed print statements, fixed missing arguments