updated render logic from frame logic