implementation of area (check)