removed print statement from grammar