added center method