cleaning up code, removing title parameter from getVersionedId function