added appending objects logic