changing {$} to ${}