adding set method to list for functional update