fixed compiler error for strict compilers