improving backend algorithms