refined code
refined code