making the broken method work