updated code for eys app