fixed it for compatibility