updated render effects code