finalizing backend and frontend