fixed printf statements