got rid of using Optimist