implemented set method