fix expected position function call and antistate implementation