fix for << method + tests