pass len argument