modified song filter logic, added a few comments