fix format and remove debug print which crashes