added structs for statistics in backend
made frontend structs compatible