fixed formula errors