change valid types to hash
pick up properties from object