fixes the bottom method