Final backend

this is all final stuffs