size checking fix