removed redundant comment on validPosition