bottom parameter in bar function