'return' keyword should not appear outside methods