amended code styles and prints