add logging to getSize