valid data func fixed

Note - markers aren't loaded in right place