improved usage possibilitys by changing print to string output