fixed for small solution