fix for lifetime problem

See http://stackoverflow.com/questions/24291288/how-to-fix-cannot-infer-an-appropriate-lifetime-for-automatic-coercion