fixed '$' printing