getbasis wasn't properly defined