* code for task#1786.