moved let code to syntax