add resolve method