after file closure histogram can't be used