fixed routes and learnt to use assigns