fixing up res pay