- fixed right algorithm complexity