handling setting primitive types