time update and debugging the GSOM algorithm