start to do power attachment. still need to correct a bug