updated Conversion

changed design pattern