updated usage code