added edge bounce behavior