added calculation of sube