pos calculations improved