trying to make compatibility with old versions