added code for debug