use static of method instead of constructor