added default message for if block/cleaned up indentation