* code for task#1581.