preped solving for testing