parse signature