fixes for [ and print