implementing redirec