added color saving and multiple triangle saving