use join instead of multiple prints