added area check and parameter to check only area