I don't see `masked` defined in this function.