fix define method