use propper redirect