* code for task #1579.