cleaned up debugging