fixed all static errors