improve format filtering