small changes. sscanf has a proper format