fix method validation