changed subtract to divide, added i to add