working ctrl^D