removed unused variable word_parts to get rid of warning