removed a line which tried to add a bond which didn't exist - the molecule has 3 atoms at indices 0, 1 and 2 (there is no 3).
factory call with interface