maybe put a comment explaining what happens here if both values are present/not null?