redundant state checking for render state