add objects logic