changed type styles and legend