removed unused sparse representation
removed unused code
test bad arguments