use renderString method instead of just render