fixed printf problem