added classes to write