fixing a return value that was causing problems in ios app