remove unnecessary size check
fix missing requires_groovy_code