avoid x not assigned