coffee script added to filter open and close