prepareing for the frontend