add top / up / down function.