problems with middle and medium