fixing anywhere to function, since there is no anywhere rule in java backend