I made the functions operate

But, there are more clutters in the two functions??