almost fixed parsign problem