The improvement in operating income for the first quarter was primarily due to the improved gross profit resulting from increased sales and the decrease in research and development costs compared to the first quarter of 2008 .