forgot to add the check for right position