implementing redirection (forgot lol)