code clearify for optimize