fix kb and mb calculations