getData method and security check added
correction de getSize