hack but must work