changes ot the backend including fixing a bug