tried to minimal the errors