taken out debug flag