fixed misplaced declaration