tried to use #inject but should've not