An object has its greatest potential energy when it is