added more types and type validation method