simply calculation of width