print-level thing doesn't work so make a function of it