added message for empty code