added typeof