improved temporal relation calculation
som is partially working