fixing code completion for main