fix object oriented class