adding check for uncommitted files