added circstat functions