detect self class and neglect it