m5d incrementing and decrementing