updated to remove length requirement