edited functions