updating objects and adding order