fix method contract