simplifying the add operation to avoid excetption