fix directionality on collected date query, clean up old functions in item