add enter position logic