updated to convert bytes input to kilobytes