OOPS modular arithmatic mistake. no wonder nothing worked...