next he became friends with johannes kepler with whom he worked in a close collaboration