code reduction on methods.