migrated deprecated function call