Ziqi added functions to attain area