changed data directory
add try catch to power method