timewise and drugwise clustering