improved render check