add dynamic method definition