altering mget and madd functions