adding helper methods.