added ap to zero for move