convert into class