using redirection approach