i added encode again to test on server