added print debug to output layer, remove later