fixed some equations