setting function now works.