conversion of procedures to methods