made filename a const and signed char