getting rid of redundant bounce function