if statment works properly for 10 now, turns out it wanted a string not an integer