adding correct res