add check on null position