working but need to amend doc controllr