adding interface generator method