fixing no-ops in update function