fixed typo to get working ackerman function