added debug bug