removed unused code form local.model