changed data checking to starts with