added proper printing