fixed non-static errors