add well function
changes