changed this to make it work not sure how this should work though any input?