m must be even