used split instead of join!