added some extra params for string types