now freeing memory when only a fourth is needed