fixed bug in setting functions