changed how we check if uncommitted