solution for #46.

Please refer to # 46 for more information.