skiped resize problem
npe checks
better solution