rename variable m to i