adding method to print debug in a simplified way