Handling cases of same name, different type