working on communication with backend