make optional methods work