wrote stuff for frontend