method notation and optimization