updated code and works