1st version without smart corner