simple conversion to imperative form added