use correct types in sscanf