method created and commited