conway: improvements and optimization