added println's for debugging