move power method to models