removed unneccessary uri check in callback