fix repr function