pipe and redirect work perfectly