found a way to type check input dynamically