added inlined put/add functions