the one in the view doesnt work when logged in as captain