doesnt work with endls