use print instead of puts