use self instead of class