removed print statement in formatMode()