added a debug-method to output frame