*  code for task#993.
 *  code for task#1011.