Improving invalid underscore method error