added method for various compibility issues.