-improved code