update to use new dynamodb attribute functions