fixed bug: made sure all statements are added to correct graph