started replacement of gets and sets with more general functions