updating to avoid warnings with the latest version of numpy