fixed time unit bug in the dyads function