cleaning up the backend