make contract for methods work.