added return statement in decodeUrl