cont writing, added try code