i would add type check