added classes functions