marked potri functions as bad because a lot of errors