fixed declaration loading