this should discard frames which are too large