removed output, fixed indentation, removed warnings on compile