adding periodical commit