add commit to some class