updated code 04 sept