changed println to debug