* code for task#1782.