more problems solved using type-hinting