checking function lengths