fixed more errors in various fxns