fixed declaration order for strict compilers