Polish astack code