updated small part of the code