displaying figures works, but uses a deprecated method