working on moving functions