work on the code updated it  but console died