Adding processing functions
alignment functions added