added feature size check