Phone having problem in updating firmware in galaxy y

i have changed my rom several times and after the phone becoming slow i changed it to stock rom. now when i am trying to
update my firware in galaxy y, its not getting installed. but its getting dowloaded. its not getting installed via kies too.i made a mistake changing roms.is any help possible? please. thanks.