just realised this method definition already existed and mine made no sense, whoops.