removed reading stream, wrong approach