bug fix, object now working on the frontend