try fixing declaration order again