Make sure to safe size as int