fixed the represenation function