debug code added and commented out