debugging messages fixed