power family loss function