validate size, add annotatoions to query