changed to check only name