added checking to commit_id