fixing resolution and added status code check