add check for size