added custom bounce function