added new function, remove top-bottom white space