added usage calculation