finished editing functions to allow for generic track class as input