correct handling declarations