time to put in that algorithm