improve calculating filesize