fixing bug with generator function
updating web interface